using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Requests
/// </summary>
public class Requests
{
    private static String getTasks="<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>  <SOAP:Header xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>    <header xmlns='http://schemas.cordys.com/General/1.0/'>      <Logger xmlns='http://schemas.cordys.com/General/1.0/'>      </Logger>    </header>    <i18n:international xmlns:i18n='http://www.w3.org/2005/09/ws-i18n'>      <locale xmlns='http://www.w3.org/2005/09/ws-i18n'>      en-us</locale>    </i18n:international>  </SOAP:Header>  <SOAP:Body>    <GetTasks xmlns='http://schemas.cordys.com/notification/workflow/1.0'>      <TaskIdentifiers xmlns='http://schemas.cordys.com/notification/workflow/1.0'>        <TaskIdentifierType xmlns='http://schemas.cordys.com/notification/workflow/1.0'        id='' name=''></TaskIdentifierType>      </TaskIdentifiers>      <Criteria xmlns='http://schemas.cordys.com/notification/workflow/1.0'>        <Query xmlns='http://schemas.cordys.com/notification/workflow/1.0'>        </Query>        <Parameters xmlns='http://schemas.cordys.com/notification/workflow/1.0'>          <Parameter name='startDate' type='Task.StartDate'          value='2011-08-22T12:00:09.9' />        </Parameters>      </Criteria>      <OrderBy xmlns='http://schemas.cordys.com/notification/workflow/1.0'>      Task.DeliveryDate desc</OrderBy>      <AssignedBy xmlns='http://schemas.cordys.com/notification/workflow/1.0'>      </AssignedBy>      <Target xmlns='http://schemas.cordys.com/notification/workflow/1.0'      type=''></Target>      <ShowNonWorkableItems xmlns='http://schemas.cordys.com/notification/workflow/1.0'>      false</ShowNonWorkableItems>      <ReturnTaskData xmlns='http://schemas.cordys.com/notification/workflow/1.0'>      false</ReturnTaskData>      <cursor position='0' numRows='50' maxRows='50' />    </GetTasks>  </SOAP:Body></SOAP:Envelope>";
    private static String getUserDetails = "<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'><SOAP:Header xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>		<header xmlns='http://schemas.cordys.com/General/1.0/'>			<Logger xmlns='http://schemas.cordys.com/General/1.0/'><DC xmlns='http://schemas.cordys.com/General/1.0/' name='XForms'>/com/cordys/notification/inbox.caf</DC><DC xmlns='http://schemas.cordys.com/General/1.0/' name='XForms'>/com/cordys/cusp/cusp.caf</DC><DC xmlns='http://schemas.cordys.com/General/1.0/' name='hopCount'>0</DC><DC xmlns='http://schemas.cordys.com/General/1.0/' name='correlationID'>005056C0-0008-11E0-F9AE-C9BBAAF21607</DC></Logger></header>		<i18n:international xmlns:i18n='http://www.w3.org/2005/09/ws-i18n'><locale xmlns='http://www.w3.org/2005/09/ws-i18n'>en-us</locale></i18n:international></SOAP:Header><SOAP:Body><GetUserDetails xmlns='http://schemas.cordys.com/notification/workflow/1.0'><UserDN xmlns='http://schemas.cordys.com/notification/workflow/1.0'></UserDN></GetUserDetails></SOAP:Body></SOAP:Envelope>";
    private static String getTask = "<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>	<SOAP:Header xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>		<header xmlns='http://schemas.cordys.com/General/1.0/'>			<Logger xmlns='http://schemas.cordys.com/General/1.0/'></Logger></header>		<i18n:international xmlns:i18n='http://www.w3.org/2005/09/ws-i18n'><locale xmlns='http://www.w3.org/2005/09/ws-i18n'>en-us</locale></i18n:international></SOAP:Header><SOAP:Body>		<GetTask xmlns='http://schemas.cordys.com/notification/workflow/1.0'>			<TaskId>005056C0-0008-11E0-F9AD-DD608C0A3605</TaskId>			<RetrievePossibleActions>true</RetrievePossibleActions>			<Target type='user'>cn=Amanager,cn=organizational users,o=aspinbox,cn=cordys,cn=definst,o=vanenburg.com</Target></GetTask>	</SOAP:Body></SOAP:Envelope>";
    private static String performTask = "<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>	<SOAP:Header xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>		<header xmlns='http://schemas.cordys.com/General/1.0/'>			<Logger xmlns='http://schemas.cordys.com/General/1.0/'><DC xmlns='http://schemas.cordys.com/General/1.0/' name='XForms'>/com/cordys/notification/inbox.caf</DC><DC xmlns='http://schemas.cordys.com/General/1.0/' name='XForms'>/com/cordys/cusp/cusp.caf</DC><DC xmlns='http://schemas.cordys.com/General/1.0/' name='hopCount'>0</DC><DC xmlns='http://schemas.cordys.com/General/1.0/' name='correlationID'>005056C0-0008-11E0-F9C4-1B6C2E22160D</DC></Logger></header>		<i18n:international xmlns:i18n='http://www.w3.org/2005/09/ws-i18n'><locale xmlns='http://www.w3.org/2005/09/ws-i18n'>en-us</locale></i18n:international></SOAP:Header><SOAP:Body>		<PerformTaskAction xmlns='http://schemas.cordys.com/notification/workflow/1.0'>			<TaskId>005056C0-0008-11E0-F9AE-E1130DBED607</TaskId>			<Action>COMPLETE</Action>			<Data><formoutputdata xmlns='http://schemas.cordys.com/1.0/xforms/processapi'><freeformcontrols></freeformcontrols></formoutputdata></Data>		</PerformTaskAction>	</SOAP:Body></SOAP:Envelope>";
    public static String getTasksRequestString()
    {
        return getTasks;
    }
    public static String getUserDetailsRequestString()
    {
        return getUserDetails;
    }
    public static String getTaskRequestString()
    {
        return getTask;
    }
    public static String getperformTaskRequestString()
    {
        return performTask;
    }
	public Requests()
	{
		//
		// TODO: Add constructor logic here
		//
	}
}
